package cn.com.xf.domain;

import java.net.URLEncoder;
import java.util.Date;

import org.apache.commons.codec.binary.Base64;

import cn.com.xf.utils.imgURLUtil;


public class Tbdamagedgoods {
	private String seqid;
	private String orderid;
	private String uploadtype;
	private Date entertime;
	private String entertimeStart;
	private String entertimeEnd;
	private String enteruser;
	private String entusername;
	private String entersite;
	private String entsitename;
	private String centerid;
	private String centername;
	private String memo;
	private Date recedate;
	private String receclass;
	private Double weight;
	private String damagetype;
	private String recedateStart;
	private String recedateEnd;
	private String filename;
	private String svrip;
	@SuppressWarnings("unused")
	private String imgUrl;
	private Integer applysta;
	private String goodsid;
	private Integer id;
	private String applysite;
	private String applysname;
	private String applyuser;
	private String applyusername;
	private Date applytime;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getApplysite() {
		return applysite;
	}
	public void setApplysite(String applysite) {
		this.applysite = applysite;
	}
	public String getApplysname() {
		return applysname;
	}
	public void setApplysname(String applysname) {
		this.applysname = applysname;
	}
	public String getApplyuser() {
		return applyuser;
	}
	public void setApplyuser(String applyuser) {
		this.applyuser = applyuser;
	}
	public String getApplyusername() {
		return applyusername;
	}
	public void setApplyusername(String applyusername) {
		this.applyusername = applyusername;
	}
	public Date getApplytime() {
		return applytime;
	}
	public void setApplytime(Date applytime) {
		this.applytime = applytime;
	}
	public String getApplymemo() {
		return applymemo;
	}
	public void setApplymemo(String applymemo) {
		this.applymemo = applymemo;
	}
	public String getVerifysite() {
		return verifysite;
	}
	public void setVerifysite(String verifysite) {
		this.verifysite = verifysite;
	}
	public String getVerifysname() {
		return verifysname;
	}
	public void setVerifysname(String verifysname) {
		this.verifysname = verifysname;
	}
	public String getVerifyuser() {
		return verifyuser;
	}
	public void setVerifyuser(String verifyuser) {
		this.verifyuser = verifyuser;
	}
	public String getVerifyusername() {
		return verifyusername;
	}
	public void setVerifyusername(String verifyusername) {
		this.verifyusername = verifyusername;
	}
	public String getVerifymemo() {
		return verifymemo;
	}
	public void setVerifymemo(String verifymemo) {
		this.verifymemo = verifymemo;
	}
	public Date getVerifytime() {
		return verifytime;
	}
	public void setVerifytime(Date verifytime) {
		this.verifytime = verifytime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	private String applymemo;
	private String verifysite;
	private String verifysname;
	private String verifyuser;
	private String verifyusername;
	private String verifymemo;
	private Date verifytime;
	private Integer status;

	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	@SuppressWarnings("deprecation")
	public String getImgUrl() throws Exception {
		String url = null;
		if(this.filename != null && this.svrip != null 
				&& !this.filename.equals("") && !this.svrip.equals("")) {
			String sign = null;
				sign = new String(imgURLUtil.encodeMd5(this.uploadtype+this.filename));
			url = "http://"+this.svrip+":89/ImageWebApp/GetImg.aspx?type="
					+this.uploadtype+"&url="+this.filename+"&sign="+URLEncoder.encode(sign,"utf-8");
		}
		return imgUrl = url;
	}
	
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	public String getSeqid() {
		return seqid;
	}
	public void setSeqid(String seqid) {
		this.seqid = seqid;
	}
	public String getOrderid() {
		return orderid;
	}
	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}
	public String getUploadtype() {
		return uploadtype;
	}
	public void setUploadtype(String uploadtype) {
		this.uploadtype = uploadtype;
	}
	public Date getEntertime() {
		return entertime;
	}
	public void setEntertime(Date entertime) {
		this.entertime = entertime;
	}
	public String getEnteruser() {
		return enteruser;
	}
	public void setEnteruser(String enteruser) {
		this.enteruser = enteruser;
	}
	public String getEntersite() {
		return entersite;
	}
	public void setEntersite(String entersite) {
		this.entersite = entersite;
	}
	public String getCenterid() {
		return centerid;
	}
	public void setCenterid(String centerid) {
		this.centerid = centerid;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public Date getRecedate() {
		return recedate;
	}
	public void setRecedate(Date recedate) {
		this.recedate = recedate;
	}
	public String getRececlass() {
		return receclass;
	}
	public void setRececlass(String receclass) {
		this.receclass = receclass;
	}
	public Double getWeight() {
		return weight;
	}
	public void setWeight(Double weight) {
		this.weight = weight;
	}
	public String getDamagetype() {
		return damagetype;
	}
	public void setDamagetype(String damagetype) {
		this.damagetype = damagetype;
	}
	public String getEntusername() {
		return entusername;
	}
	public void setEntusername(String entusername) {
		this.entusername = entusername;
	}
	public String getEntsitename() {
		return entsitename;
	}
	public void setEntsitename(String entsitename) {
		this.entsitename = entsitename;
	}
	public String getCentername() {
		return centername;
	}
	public void setCentername(String centername) {
		this.centername = centername;
	}
	public String getRecedateStart() {
		return recedateStart;
	}
	public void setRecedateStart(String recedateStart) {
		this.recedateStart = recedateStart;
	}
	public String getRecedateEnd() {
		return recedateEnd;
	}
	public void setRecedateEnd(String recedateEnd) {
		this.recedateEnd = recedateEnd;
	}
	public String getSvrip() {
		return svrip;
	}
	public void setSvrip(String svrip) {
		this.svrip = svrip;
	}
	public Integer getApplysta() {
		return applysta;
	}
	public void setApplysta(Integer applysta) {
		this.applysta = applysta;
	}
	public String getGoodsid() {
		return goodsid;
	}
	public void setGoodsid(String goodsid) {
		this.goodsid = goodsid;
	}
	public String getEntertimeStart() {
		return entertimeStart;
	}
	public void setEntertimeStart(String entertimeStart) {
		this.entertimeStart = entertimeStart;
	}
	public String getEntertimeEnd() {
		return entertimeEnd;
	}
	public void setEntertimeEnd(String entertimeEnd) {
		this.entertimeEnd = entertimeEnd;
	}
	
}
